package com.py.inbound.service.impl;

import java.util.List;

import com.py.inbound.domain.WhInventory;
import com.py.inbound.mapper.WhInventoryMapper;
import com.py.inbound.service.IWhInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class WhInventoryServiceImpl implements IWhInventoryService {
    @Autowired
    private WhInventoryMapper whInventoryMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param inventoryQueryId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public WhInventory selectWhInventoryByInventoryQueryId(Long inventoryQueryId) {
        return whInventoryMapper.selectWhInventoryByInventoryQueryId(inventoryQueryId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param whInventory 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<WhInventory> selectWhInventoryList(WhInventory whInventory) {
        return whInventoryMapper.selectWhInventoryList(whInventory);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param whInventory 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertWhInventory(WhInventory whInventory) {
        return whInventoryMapper.insertWhInventory(whInventory);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param whInventory 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateWhInventory(WhInventory whInventory) {
        return whInventoryMapper.updateWhInventory(whInventory);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param inventoryQueryIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteWhInventoryByInventoryQueryIds(Long[] inventoryQueryIds) {
        return whInventoryMapper.deleteWhInventoryByInventoryQueryIds(inventoryQueryIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param inventoryQueryId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteWhInventoryByInventoryQueryId(Long inventoryQueryId) {
        return whInventoryMapper.deleteWhInventoryByInventoryQueryId(inventoryQueryId);
    }

    @Override
    public List<WhInventory> WhInventoryList(WhInventory whInventory) {
        return whInventoryMapper.WhInventoryList(whInventory);
    }

    @Override
    public WhInventory whInventoryTotle() {
        return whInventoryMapper.whInventoryTotle();
    }
}
